import request from '@/utils/request'

export function listTopic() {
  return request({
    url: '/user/topic/listTopic',
    method: 'get'
  })
}

export function adminListTopic(query) {
  return request({
    url: '/user/topic/adminListTopic',
    method: 'get',
    params: query
  })
}

export function deleteTopic(query) {
  return request({
    url: '/user/topic/deleteTopic',
    method: 'post',
    params: query
  })
}

export function sevenRecord() {
  return request({
    url: '/user/topic/sevenRecord',
    method: 'get'
  })
}
